<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="chrome=1,IE=edge" />
    <title>西京文交所管理端-添加藏品</title>
    <link rel="stylesheet" href="../../static/iconfont/iconfont.css" >
    <link rel="stylesheet" href="../../static/frameset.css" >
</head>
<body>

    <div id="J_wrap" class="m_wrap m_box_v p_form none">
        <div class="m_top">
            <headers v-on:callback="headerHandle" :userobj.sync="userobj"></headers>
        </div>
        <div class="m_content m_flex1 m_box">
            <menunav index="collection" sub="issued" v-if="disabled" :navobj.sync="userobj.group_acl"></menunav>
            <menunav index="collection" sub="notissued" v-if="!disabled" :navobj.sync="userobj.group_acl"></menunav>
            <div class="container m_flex1 m_over">
                <ul class="breadcrumbs">
                    <li><span>藏品管理</span>&gt;</li>
                    <li v-if="disabled"><a href="index.html">已发行</a>&gt;</li>
                    <li v-if="!disabled"><a href="notissued.html">未发行</a>&gt;</li>
                    <li class="on">{{ id ? "修改" : "添加" }}藏品</li>
                </ul>
                <table class="m_fmtable m_mt fixed" v-allcheck="check">
                    <tbody>
                        <tr>
                            <th>藏品ID</th>
                            <td>
                                <input :disabled="disabled" class="m_input" maxlength="6" v-inputnumber type="text" v-model="res.code" check="[{'type':'require'}, {'type':'length', 'val':6}]">
                            </td>
                        </tr>
                        <tr>
                            <th>藏品名称</th>
                            <td>
                                <input :disabled="disabled" class="m_input" type="text" v-model="res.name" check="[{'type':'require'}]">
                            </td>
                        </tr>
                        <tr>
                            <th>藏品大类</th>
                            <td>
                                <select :disabled="disabled" class="m_select" name="type" v-on:change="changeType" v-model="res.type" check="[{'type':'require'}]">
                                    <option value='' selected hidden>请选择</option>
                                    <option value="{{ item.id }}" v-for="item in typeList">{{item.name}}</option>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <th>藏品类型</th>
                            <td>
                                <select :disabled="disabled" class="m_select" name="type" v-model="res.sub_type" check="[{'type':'require'}]">
                                    <option value='' selected hidden>请选择</option>
                                    <option value="{{ item.id }}" v-for="item in changList">{{item.name}}</option>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <th>上票方</th>
                            <td>
                                <select :disabled="disabled" class="m_select" name="type" v-model="res.business" check="[{'type':'require'}]">
                                    <option value='' selected hidden>请选择</option>
                                    <option value="{{item.id}}" v-for="item in buslist">{{item.name}}</option>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <th>挂牌价</th>
                            <td>
                                <input :disabled="disabled" class="m_input" type="text" v-inputnumberdot v-model="res.price" check="[{'type':'require'}]">
                            </td>
                        </tr>
                        <tr>
                            <th>挂牌量</th>
                            <td>
                                <input :disabled="disabled" class="m_input" type="text" v-inputnumber v-model="res.count" check="[{'type':'require'}]">
                            </td>
                        </tr>
                        <tr>
                            <th>最大委托买入</th>
                            <td>
                                <input :disabled="disabled" class="m_input" type="text" v-inputnumber v-model="res.max_entrust_buy" check="[{'type':'require'}]">
                            </td>
                        </tr>
                        <tr>
                            <th>最大委托卖出</th>
                            <td>
                                <input :disabled="disabled" class="m_input" type="text" v-inputnumber v-model="res.max_entrust_sell" check="[{'type':'require'}]">
                            </td>
                        </tr>
                        <tr>
                            <th>最小提货量</th>
                            <td>
                                <input :disabled="disabled" class="m_input" type="text" v-inputnumber v-model="res.min_take" check="[{'type':'require'}]">
                            </td>
                        </tr>
                        <tr>
                            <th>图文ID</th>
                            <td>
                                <select :disabled="disabled" class="m_select" name="type" v-model="res.article_id" check="[{'type':'require'}]">
                                    <option selected value="" >请选择</option>
                                    <option value="{{item.id}}" v-for="item in artlist">{{item.title}}</option>
                                </select>
                            </td>
                        </tr>
                        <tr>
                            <th>上市时间</th>
                            <td>
                                <input type="text" class="m_input m_time" v-model="res.sell_time" check="[{'type':'require'}]" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',minDate:'%y-%M-{%d+1}'})">
                            </td>
                        </tr>
                        <tr>
                            <th></th>
                            <td>
                                <button class="m_btn" v-on:click="submit">提交</button>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>


    <script src="../../js/plugins/zepto/zepto.min.js"></script>
    <script src="../../js/plugins/vue/vue.min.js"></script>
    <script src="../../js/plugins/seajs/sea.js"></script>
    <script src="../../js/plugins/seajs/seajs-text.js"></script>
    <script src="../../js/plugins/datePicker/WdatePicker.js"></script>

    <script>
        seajs.use( "../../js/page/collection/add" );
    </script>

</body>
</html>
